const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  chainWebpack: config => {
    config.module
      .rule('js')
      .use('babel-loader')
      .tap(options => {
        return {
          ...options,
          plugins: [
            ...(options.plugins || []),
            '@babel/plugin-syntax-dynamic-import'
          ]
        };
      });
  }
});